standardCard={
	cards:{
		sha:{
			type:"basic",
			can_use:1,
			filter_target:{attack:1},
			content:function(step){
				switch(step){
					case 0:
					trigger('ShaBegin');
					break;

					case 1:
					AskForRespond('shan');
					break;

					case 2:
					if(evt.result.bool==false)
						trigger('ShaHit');
					else
						trigger('ShaMiss');
					break;

					case 3:
					if(evt.result.bool==false)
						Damage();
					trigger('ShaEnd');
					finish();
				}
			},
			ai:{
				basic:{
					target:'bad'
				}
			}
		},
		shan:{
			type:"basic",
		},
		tao:{
			type:"basic",
			can_use:filter.card.lost_hp,
			filter_target:filter.target.self,
			select_target:-1,
			content:function(step){
				Recover();
			},
		},
		bagua:{
			type:"equip",
			sub_type:"equip2",
			skills:['bagua'],
		},
		jueying:{
			type:"equip",
			sub_type:"equip3",
			global_to:1,
		},
		dilu:{
			type:"equip",
			sub_type:"equip3",
			global_to:1,
		},
		zhuahuang:{
			type:"equip",
			sub_type:"equip3",
			global_to:1,
		},
		chitu:{
			type:"equip",
			sub_type:"equip4",
			global_from:-1,
		},
		dawan:{
			type:"equip",
			sub_type:"equip4",
			global_from:-1,
		},
		zixin:{
			type:"equip",
			sub_type:"equip4",
			global_from:-1,
		},
		zhuge:{
			type:"equip",
			sub_type:"equip1",
			skills:['zhuge']
		},
		cixiong:{
			type:"equip",
			sub_type:"equip1",
			attack_from:-1,
			skills:['cixiong']
		},
		qinggang:{
			type:"equip",
			sub_type:"equip1",
			attack_from:-1,
			skills:['qinggang']
		},
		qinglong:{
			type:"equip",
			sub_type:"equip1",
			attack_from:-2,
			skills:['qinglong']
		},
		zhangba:{
			type:"equip",
			sub_type:"equip1",
			attack_from:-2,
			skills:['zhangba']
		},
		guanshi:{
			type:"equip",
			sub_type:"equip1",
			attack_from:-2,
			skills:['guanshi']
		},
		fangtian:{
			type:"equip",
			sub_type:"equip1",
			attack_from:-3,
			skills:['fangtian']
		},
		qilin:{
			type:"equip",
			sub_type:"equip1",
			attack_from:-4,
			skills:['qilin']
		},
		wugu:{
			type:"trick",
			can_use:filter.true,
			filter_target:filter.true,
			select_target:-1,
			content_before:function(){
				openDialog('五谷丰登',game.players.length,'wugu');
				delay(2)
			},
			content:function(step){
				switch(step){
					case 0:
					Choose(evt.target,true);
					break;

					case 1:
					var card=evt.result.buttons[0].link;
					GainCards(card);
					disableButton(evt.result.buttons[0]);
					changeCaption(get.name(evt.target)+'选择了【'+get.name_info(card)+'】');
					evt.result.buttons[0].getElementsByClassName('cardInfo')[0].innerHTML=get.name(evt.target);
					delay(2);
					finish();
				}
			},
			content_after:function(){
				closeDialog('wugu');
			},
			ai:{
				basic:{
					target:'good'
				}
			}
		},
		taoyuan:{
			type:'trick',
			can_use:filter.true,
			filter_target:filter.target.lostHp,
			select_target:-1,
			content:function(){
				Recover();
			},
			ai:{
				basic:{
					target:'good'
				}
			}
		},
		nanman:{
			type:'trick',
			can_use:filter.true,
			filter_target:filter.target.others,
			select_target:-1,
			content:function(step){
				switch(step){
					case 0:
					trigger('NanmanBegin');
					break;

					case 1:
					AskForRespond('sha');
					break;
					
					case 2:
					if(evt.result.bool==false){
						Damage();
					}
					finish();
				}
			},
			ai:{
				basic:{
					target:'bad'
				}
			}
		},
		wanjian:{
			type:'trick',
			can_use:filter.true,
			filter_target:filter.target.others,
			select_target:-1,
			content:function(step){
				switch(step){
					case 0:
					trigger('WanjianBegin');
					break;

					case 1:
					AskForRespond('shan');
					break;

					case 2:
					if(evt.result.bool==false){
						Damage();
					}
					finish();
				}
			},
			ai:{
				basic:{
					target:'bad'
				}
			}
		},
		wuzhong:{
			type:'trick',
			can_use:filter.true,
			filter_target:filter.target.self,
			select_target:-1,
			content:function(){
				DrawCards(2);
			},
			ai:{
				basic:{
					target:'good'
				}
			}
		},
		juedou:{
			type:'trick',
			can_use:filter.true,
			filter_target:filter.target.others,
			content:function(step){
				switch(step){
					case 0:
					evt.turn=evt.target;
					break;

					case 1:
					trigger('Juedou');
					break;

					case 2:
					AskForRespond(evt.turn,'sha');
					break;

					case 3:
					if(evt.result.bool){
						if(evt.turn==evt.target)
							evt.turn=evt.player;
						else
							evt.turn=evt.target;

						goto(1);
					}
					else{
						Damage(evt.turn);
						finish();
					}
				}
			},
			ai:{
				basic:{
					target:'bad'
				}
			}
		},
		shunshou:{
			type:'trick',
			can_use:filter.true,
			filter_target:[filter.target.hasCards,{global:1}],
			content:function(step){
				switch(step){
					case 0:
					ChooseCard();
					break;

					case 1:
					GainCards(evt.result.cards,evt.player);
					finish();
				}
			},
			ai:{
				basic:{
					target:'bad',
					player:'good'
				}
			}
		},
		guohe:{
			type:'trick',
			can_use:filter.true,
			filter_target:function(player,target){
				return target.cards.length>0
			},
			content:function(step){
				switch(step){
					case 0:
					ChooseCard();
					break;

					case 1:
					Discard(evt.result.cards);
					finish();
				}
			},
			ai:{
				basic:{
					target:'bad'
				}
			}
		},
		jiedao:{
			type:'trick',
			can_use:filter.true,
			filter_target:function(player,target){
				if(game.selected_targets.length==0)
					return (target!=player&&get.equip1(target));
				else
					return (api.canUseSha(game.selected_targets[0],target));
			},
			select_target:2,
			multi_target:true,
			content:function(step){
				switch(step){
					case 0:
					AskForUse({
						player:evt.targets[0],
						filter_card:'sha',
						filter_target:evt.targets[1],
						select_target:-1
					})
					break;

					case 1:
					if(evt.result.bool==false)
						GainCards(evt.player,get.equip1(evt.targets[0]));
					break;

					case 2:
					finish();
				}
			},
			ai:{
				basic:{
					target:'bad',
					player:'good'
				}
			}
		},
		wuxie:{
			type:'trick',
			ai:{
				use:function(){

				}
			}
		},
		lebu:{
			type:'trick',
			sub_type:'delayed',
			can_use:filter.true,
			filter_target:filter.target.others,
			result:{
				good:'heart'
			},
			on_effect:function(step){
				switch(step){
					case 0:
					if(evt.result.bool==false){
						addSkip('PhaseUse')
						openPrompt(get.name(evt.player)+'跳过出牌阶段');
					}
					break;

					case 1:
					if(evt.result.bool==false)
						delay(2);
					finish();
				}
			}
		},
		shandian:{
			type:'trick',
			sub_type:'delayed',
			can_use:filter.true,
			filter_target:filter.target.self,
			result:{
				bad:['spade',[2,9]]
			},
			on_effect:function(step){
				switch(step){
					case 0:
					if(evt.result.bool==false){
						Damage(3,'thunder',$);
						openPrompt(get.name(evt.player)+'被闪电劈中');
					}
					break;

					case 1:
					if(evt.result.bool==false)
						delay(2);
					else{
						var player=evt.player.next;
						while(player!=evt.player&&filter.target.judge(player,evt.card)==false)
							player=player.next;
						if(player!=evt.player)
							AddJudge(evt.card,player);
					}
					finish();
				}
			}
		},
	},
	skills:{
		zhuge:{
			flag:{
				use_limit:function(card){
					if(get.name(card)=='sha') return 999;
				}
			}
		},
		cixiong:{
			can_trigger:'ShaBegin',
			filter:function(player,event){
				if(player!=event.player) return false;
				if(player.sex==event.target.sex) return false;
				return true;
			},
			content:function(step){
				switch(step){
					case 0:
					AskForDiscard(evt.evt.target);
					break;

					case 1:
					if(evt.result.bool==false)
						DrawCards(1);
					finish();
				}
			}
		},
		qinggang:{
			will_trigger:'ShaBegin',
			trigger_prompt:false,
			content:function(){
				if(get.equip2(evt.evt.player)){
					openPrompt(get.name(evt.player)+'发动了技能【青釭剑】');
					delay(2);
				}
				addTempSkill(evt.evt.target,'disarm2',2)
			}
		},
		qinglong:{
			will_trigger:'ShaMiss',
			trigger_prompt:false,
			content:function(){
				openPrompt('是否发动【青龙偃月刀】？');
				AskForUse({
					filter_card:'sha',
					select_card:1,
					filter_target:evt.evt.target,
					select_target:false
				});
			}
		},
		zhangba:{
			filter_card:true,
			select_card:2,
			view_as:'sha',
			select_prompt:'丈八蛇矛：将两张手牌当【杀】使用'
		},
		guanshi:{
			will_trigger:'ShaMiss',
			trigger_prompt:false,
			content:function(step){
				switch(step){
					case 0:
					openPrompt('是否发动【贯石斧】？');
					AskForDiscard('h',2,$);
					break;

					case 1:
					if(evt.result.bool)
						api.directHit();
					finish();
				}
					
			}
		},
		fangtian:{
			mod:{
				type:'select_target',
				filter:function(player,card){
					if(card.name!='sha') return false;
					for(var i in player.handcards)
						if(player.handcards[i].dataset.select!=2) return false;
					return true;
				},
				content:{
					add:2
				}
			}
		},
		qilin:{
			will_trigger:'ShaHit',
			trigger_prompt:false,
			filter:function(player,event){
				if(player!=event.player) return false;
				for(var i in event.target.equips){
					if(get.sub_type(event.target.equips[i])=='equip3'||get.sub_type(event.target.equips[i])=='equip4')
						return true;
				}
				return false;
			},
			content:function(step){
				switch(step){
					case 0:
					var equips=new Array();
					for(var i in evt.evt.target.equips){
						if(get.sub_type(evt.evt.target.equips[i])=='equip3'||get.sub_type(evt.evt.target.equips[i])=='equip4')
							equips.push(evt.evt.target.equips[i]);
					}
					Choose({caption:'麒麟弓：选择要弃置的马',list:equips},'unforced');
					break;

					case 1:
					if(evt.result.bool){
						Discard(evt.result.buttons[0].link);
					}
					finish();
				}
			}
		},
		bagua:{
			can_trigger:'AskForRespond',
			filter:function(player,event){
				if(player!=event.player) return false;
				return canRespond('shan',event);
			},
			content:function(step){
				switch(step){
					case 0:
					Judge({good:'red'});
					break;

					case 1:
					if(evt.result.bool)
						api.respondShan();
					finish();
				}
			}
		}
	},
	translate:{
		sha:'杀',
		shan:'闪',
		tao:'桃',
		bagua:'八卦阵',
		jueying:'绝影',
		dilu:'的卢',
		zhuahuang:'爪黄飞电',
		chitu:'赤兔',
		dawan:'大宛',
		zixin:'紫骍',
		zhuge:'诸葛连弩',
		cixiong:'雌雄双股剑',
		qinggang:'青釭剑',
		qinglong:'青龙偃月刀',
		zhangba:'丈八蛇矛',
		guanshi:'贯石斧',
		fangtian:'方天画戟',
		qilin:'麒麟弓',
		wugu:'五谷丰登',
		taoyuan:'桃园结义',
		nanman:'南蛮入侵',
		wanjian:'万箭齐发',
		wuzhong:'无中生有',
		juedou:'决斗',
		shunshou:'顺手牵羊',
		guohe:'过河拆桥',
		jiedao:'借刀杀人',
		wuxie:'无懈可击',
		lebu:'乐不思蜀',
		shandian:'闪电',
	},
	list:[
		["spade",7,"sha"],
		["spade",8,"sha"],
		["spade",8,"sha"],
		["spade",9,"sha"],
		["spade",9,"sha"],
		["spade",10,"sha"],
		["spade",10,"sha"],
		["club",2,"sha"],
		["club",3,"sha"],
		["club",4,"sha"],
		["club",5,"sha"],
		["club",6,"sha"],
		["club",7,"sha"],
		["club",8,"sha"],
		["club",8,"sha"],
		["club",9,"sha"],
		["club",9,"sha"],
		["club",10,"sha"],
		["club",10,"sha"],
		["club",11,"sha"],
		["club",11,"sha"],
		["heart",10,"sha"],
		["heart",10,"sha"],
		["heart",11,"sha"],
		["diamond",6,"sha"],
		["diamond",7,"sha"],
		["diamond",8,"sha"],
		["diamond",9,"sha"],
		["diamond",10,"sha"],
		["diamond",13,"sha"],
		["heart",2,"shan"],
		["heart",2,"shan"],
		["heart",13,"shan"],
		["diamond",2,"shan"],
		["diamond",2,"shan"],
		["diamond",3,"shan"],
		["diamond",4,"shan"],
		["diamond",5,"shan"],
		["diamond",6,"shan"],
		["diamond",7,"shan"],
		["diamond",8,"shan"],
		["diamond",9,"shan"],
		["diamond",10,"shan"],
		["diamond",11,"shan"],
		["diamond",11,"shan"],
		["heart",3,"tao"],
		["heart",4,"tao"],
		["heart",6,"tao"],
		["heart",7,"tao"],
		["heart",8,"tao"],
		["heart",9,"tao"],
		["heart",12,"tao"],
		["diamond",12,"tao"],


		["spade",2,"bagua"],
		["club",2,"bagua"],
		["spade",5,"jueying"],
		["club",5,"dilu"],
		["heart",13,"zhuahuang"],
		["heart",5,"chitu"],
		["spade",13,"dawan"],
		["diamond",13,"zixin"],
		["club",1,"zhuge"],
		["diamond",1,"zhuge"],
		["spade",2,"cixiong"],
		["spade",6,"qinggang"],
		["spade",5,"qinglong"],
		["spade",12,"zhangba"],
		["spade",5,"guanshi"],
		["diamond",12,"fangtian"],
		["heart",5,"qilin"],


		["heart",3,"wugu"],
		["heart",4,"wugu"],
		["heart",1,"taoyuan"],
		["spade",7,"nanman"],
		["spade",13,"nanman"],
		["club",7,"nanman"],
		["heart",1,"wanjian"],
		["spade",1,"juedou"],
		["club",1,"juedou"],
		["diamond",1,"juedou"],
		["heart",7,"wuzhong"],
		["heart",8,"wuzhong"],
		["heart",9,"wuzhong"],
		["heart",11,"wuzhong"],
		["spade",3,'shunshou'],
		["spade",4,'shunshou'],
		["spade",11,'shunshou'],
		["diamond",3,'shunshou'],
		["diamond",4,'shunshou'],
		["spade",3,'guohe'],
		["spade",4,'guohe'],
		["spade",12,'guohe'],
		["diamond",3,'guohe'],
		["diamond",4,'guohe'],
		["heart",12,'guohe'],
		["club",12,'jiedao'],
		["club",13,'jiedao'],
		["spade",11,'wuxie'],
		["club",12,'wuxie'],
		["club",13,'wuxie'],
		["spade",6,'lebu'],
		["club",6,'lebu'],
		["heart",6,'lebu'],
		["spade",1,'shandian'],
	],
	api:{
		
	}
}